package com.ruoyi.loan.loan.service;

import java.util.List;

import com.ruoyi.common.core.domain.LoanVo;
import com.ruoyi.loan.loan.domain.TbLoan;

/**
 * 借款Service接口
 * 
 * @author ruoyi
 * @date 2023-01-15
 */
public interface ITbLoanService 
{
    /**
     * 查询借款
     * 
     * @param loanId 借款主键
     * @return 借款
     */
    public TbLoan selectTbLoanByLoanId(Long loanId);

    /**
     * 查询借款列表
     * 
     * @param tbLoan 借款
     * @return 借款集合
     */
    public List<TbLoan> selectTbLoanList(TbLoan tbLoan);

    /**
     * 新增借款
     * 
     * @param tbLoan 借款
     * @return 结果
     */
    public int insertTbLoan(LoanVo tbLoan);

    /**
     * 修改借款
     * 
     * @param tbLoan 借款
     * @return 结果
     */
    public int updateTbLoan(LoanVo tbLoan);

    /**
     * 批量删除借款
     * 
     * @param loanIds 需要删除的借款主键集合
     * @return 结果
     */
    public int deleteTbLoanByLoanIds(Long[] loanIds);

    /**
     * 删除借款信息
     * 
     * @param loanId 借款主键
     * @return 结果
     */
    public int deleteTbLoanByLoanId(Long loanId);
}
